.container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  min-height: 100vh;
  background: #f5f5f5;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.backBtn {
  background: #f8f9fa;
  color: #007bff;
  border: 1px solid #dee2e6;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.backBtn:hover {
  background: #e9ecef;
  border-color: #007bff;
}

.header h1 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.refreshBtn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.refreshBtn:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
}

.refreshBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* 城市选择区域 */
.citySection {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.currentCity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currentCity .label {
  color: #6c757d;
  font-size: 14px;
}

.cityName {
  color: #007bff;
  font-weight: 600;
  font-size: 16px;
}

.districtName {
  color: #28a745;
  font-size: 14px;
  background: #d4edda;
  padding: 2px 8px;
  border-radius: 4px;
}

.changeCityBtn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.changeCityBtn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.error p {
  margin: 0 0 10px 0;
  font-weight: 500;
}

.retryBtn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.retryBtn:hover {
  background: #c82333;
}

.locationInfo {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.locationInfo h2 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.coords {
  margin-bottom: 20px;
}

.coordItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.coordItem:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #495057;
  font-size: 16px;
}

.value {
  color: #007bff;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  font-size: 16px;
}

.address {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.address .label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6c757d;
}

.address .value {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.copyBtn, .mapBtn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.copyBtn {
  background: #28a745;
  color: white;
}

.copyBtn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.mapBtn {
  background: #17a2b8;
  color: white;
}

.mapBtn:hover {
  background: #138496;
  transform: translateY(-1px);
}

.placeholder {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

.placeholder p {
  margin: 0;
  font-size: 16px;
}

/* 城市选择页面 - 完全按照图片效果 */
.cityPage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏 */
.cityTopBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 15px;
  background: white;
  border-bottom: 1px solid #e5e5e5;
}

.cityBack {
  font-size: 18px;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

.cityTitle {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.cityRefresh {
  font-size: 14px;
  color: #007bff;
  cursor: pointer;
  padding: 8px;
}

.cityIP {
  font-size: 14px;
  color: #28a745;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

/* 当前定位 */
.cityLocation {
  padding: 12px 15px;
  background: #f0f8ff;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
}

/* 错误提示区域 */
.errorSection {
  padding: 15px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid #e5e5e5;
}

.errorSection p {
  margin: 0 0 10px 0;
  color: #ff4d4f;
  font-size: 14px;
  text-align: center;
}

.retryBtn {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: block;
  margin: 0 auto;
}

.retryBtn:hover {
  background: #d9363e;
}

/* 主内容区域 */
.cityMain {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* 左侧城市列表 */
.cityLeft {
  width: 40%;
  background: #f8f9fa;
  overflow-y: auto;
  border-right: 1px solid #e5e5e5;
}

.cityItem {
  padding: 15px 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: all 0.2s;
}

.cityItem:hover {
  background: #f0f0f0;
}

.cityActive {
  background: #007bff;
  color: white;
  font-weight: 500;
}

.cityActive::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0056b3;
}

/* 右侧区县列表 */
.cityRight {
  flex: 1;
  background: white;
  overflow-y: auto;
}

.districtItem {
  padding: 15px 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.districtItem:hover {
  background: #f8f9fa;
}

.districtActive {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

/* 滚动条样式 */
.cityLeft::-webkit-scrollbar,
.cityRight::-webkit-scrollbar {
  width: 4px;
}

.cityLeft::-webkit-scrollbar-track,
.cityRight::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.cityLeft::-webkit-scrollbar-thumb,
.cityRight::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.cityLeft::-webkit-scrollbar-thumb:hover,
.cityRight::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 主页面样式 */
.container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.backBtn {
  background: none;
  border: none;
  font-size: 16px;
  color: #007bff;
  cursor: pointer;
  padding: 8px;
}

.title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.refreshBtn {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.refreshBtn:hover {
  background: #0056b3;
}

.citySection {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.currentCity {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.label {
  font-size: 14px;
  color: #666;
  margin-right: 8px;
}

.cityName {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-right: 8px;
}

.districtName {
  font-size: 14px;
  color: #007bff;
  background: #e3f2fd;
  padding: 2px 8px;
  border-radius: 4px;
}

.changeCityBtn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.changeCityBtn:hover {
  background: #218838;
}

.locationInfo {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.locationInfo h2 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.coords {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coordItem {
  display: flex;
  align-items: center;
}

.coordItem .label {
  font-weight: 500;
  min-width: 60px;
}

.coordItem .value {
  font-size: 16px;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .citySection {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .copyBtn, .mapBtn {
    min-width: auto;
  }
  
  .citySelectorContainer .header {
    padding: 12px 16px;
  }
  
  .citySelectorContainer .title {
    font-size: 16px;
  }
  
  .citySelectorContainer .refreshBtn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .currentLocation {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .cityItem,
  .districtItem {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .footer {
    padding: 12px 16px;
  }
  
  .confirmBtn {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .content {
    flex-direction: column;
  }
  
  .cityList {
    width: 100%;
    height: 40%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .districtList {
    height: 60%;
  }
}
